Skip to content

feat: add sendUserMessage method to AnamClient#144

Closed
Smidge wants to merge 14 commits intomainfrom
alpha
Closed

feat: add sendUserMessage method to AnamClient#144
Smidge wants to merge 14 commits intomainfrom
alpha

Conversation

@Smidge
Copy link
Contributor

@Smidge Smidge commented Jul 29, 2025

No description provided.

Smidge and others added 14 commits July 16, 2025 13:56
- Replace custom WebSocket SignallingClient with Ably Realtime implementation
- Remove heartbeat logic as Ably handles connection health automatically
- Update ClientConfigResponse to use ablyToken and ablyChannel
- Hardcode Ably channel rewind parameter to 100 messages
- Defer connection initialization to connect() method for better resource management
- Add proper error handling for uninitialized connections
- Remove message buffering in favor of explicit connection errors
- Add Ably SDK v2.9.0 dependency

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
Co-authored-by: Claude <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 29, 2025 09:21
@Smidge Smidge changed the title Release to prod feat: add sendUserMessage method to AnamClient Jul 29, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR migrates the signalling infrastructure from WebSocket to Ably PubSub, removing custom WebSocket logic and heartbeat mechanisms. The changes also introduce deprecation of brainType in favor of llmId in PersonaConfig.

  • WebSocket signalling replaced with Ably Realtime client and channel-based messaging
  • SignallingClientOptions and related types updated to use Ably token and channel configuration
  • Added deprecation warnings and support for both brainType and llmId fields during transition period

Reviewed Changes

Copilot reviewed 12 out of 13 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/types/signalling/index.ts Removed SignallingURLOptions export, keeping only SignallingClientOptions
src/types/signalling/SignallingClientOptions.ts Replaced WebSocket config with Ably token and channel name
src/types/signalling/SignalMessage.ts Added payload format handling and unencoded message conversion
src/types/coreApi/StartSessionResponse.ts Updated client config to use Ably token and channel
src/types/PersonaConfig.ts Added llmId field and updated type guard for backward compatibility
src/modules/SignallingClient.ts Complete rewrite from WebSocket to Ably Realtime implementation
src/modules/CoreApiRestClient.ts Added deprecation warnings for brainType usage
src/lib/constants.ts Added supportsPubSubSignalling flag to client metadata
src/lib/ClientMetrics.ts Extended metric tags type to support boolean values
src/AnamClient.ts Updated to use new Ably configuration and added user message functionality
package.json Added Ably dependency
README.md Updated documentation with deprecation notice and llmId usage

@Smidge Smidge closed this Jul 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants